package com.qing.write

import java.io.{File, PrintWriter}

import scala.io.Source

/**
  * Created by wuliao on 2017/8/25.
  */
object Test {
  def main(args: Array[String]): Unit = {
    val timeFile = new File("/Users/wuliao/Desktop/time.txt")
    if (!timeFile.exists()) {
      timeFile.createNewFile()
    }
    val writer = new PrintWriter(timeFile)
    writer.println(System.currentTimeMillis())
    writer.close()



  }
}
